import {Navigate} from "react-router-dom";
import Home from '../view/home'
import Content from "../view/content";
import About from "../view/about";

const routes = [

    //路由重定向
    {
        path: "/",
        element: <Navigate to={"/content"}/>
    },
    {
        path: "/about",
        element: <About/>

    },
    {
        path: "/",
        element: <Home/>,
        children: [
            {
                path: "/content",
                element: <Content/>
            }
        ],
    }
    //嵌套路由  结束.......

]
export default routes
